﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.SqlClient;
using Oplaco.Core.Configuration;
using Oplaco.Core.DAL;
using Oplaco.Core.DAL.CategoriesDataComponentTableAdapters;
using Oplaco.Core.DAL.AdsDataComponentTableAdapters;

namespace Oplaco.Core.PL
{
    public static class SystemChecker
    {
        public static void ValidateSystem(SiteSettings settings) {
            try
            {
                //start validating database
                
                
            }
            catch (InvalidOperationException ivox) {
                Oplaco.Exceptions.AppService.ProcessAndNotifyDataAccessLayerException(ivox);
            }
            catch (SqlException exception)
            {
                Oplaco.Exceptions.AppService.ProcessAndNotifyDataAccessLayerException(exception);
            }

        }

    }
}
